package com.xrc;

public class Computer {
    private  String cpu;
    private String memory;
    private String hd;
    //getter&setter  访问器


    public String getCpu() {
        return cpu;
    }

    public void setCpu(String cpu) {
        this.cpu = cpu;
    }

    public String getMemory() {
        return memory;
    }

    public void setMemory(String memory) {
        this.memory = memory;
    }

    public String getHd() {
        return hd;
    }

    public void setHd(String hd) {
        this.hd = hd;
    }

    public void bootstrap(){
        System.out.println("开机。。。");
    }
    public void shutdown(){
        System.out.println("关机。。。");
    }
}
